package com.fruit.service.order;

import java.util.Map;

import com.fruit.pojo.order.DSHOrder;
import com.fruit.pojo.order.Order;
import com.fruit.pojo.pay.TransactionFlow;

public interface OrderManager {

	
	/**
	 * 修改订单状态
	 * @param transactionId
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> updateOrderState(String tradeId, TransactionFlow tf);
	
	/**
	 * 更新订单自动取消状态
	 * @param order
	 * @return
	 * @author admin
	 * @version 2017
	 */
	public Map<String, Object> updateAutoCancelOrder(String tradeId,Order order, DSHOrder dshOrder);
	
	/**
	 * 插入订单自动退订队列
	 * @param orderId
	 * @author admin
	 * @version 2017
	 */
	public void newSaveAutoCancelOrder(long orderId);
	
	/**
	 * 插入订单自动退订队列
	 * @param orderId
	 * @author admin
	 * @version 2017
	 */
	public void saveAutoCancelOrder(long orderId);
	
	
}
